﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Assignment.aspx.cs" Inherits="admin_Assignment" MasterPageFile="~/admin/MasterPage2.master" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" runat="server"     contentplaceholderid="ContentPlaceHolder1">

<table cellpadding="0" cellspacing="0" class="letraNegra13" width="1100px">
                 <tr>
        <td class="letracuadroscolores" bgcolor="#FA7E02" align="left" style="text-align:left">&nbsp;Multiple Assignment<asp:ToolkitScriptManager 
                ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
        </td>
    </tr>
    <tr>
        <td bgcolor="#fff">
                        <asp:Panel ID="Panel3" runat="server">
                            
                            <table border="0" cellpadding="0" cellspacing="4" width="100%">
                                <tr>
                                    <td valign="top">&nbsp;</td>
                                    <td align="left" width="590px">
                                        &nbsp;</td>
                                    <td valign="top">&nbsp;</td>
                                    <td valign="top">
                                        &nbsp;</td>
                                    <td align="right" valign="top">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        Order #:</td>
                                    <td align="left" width="590px">
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="tb_orders" runat="server" Height="132px" TextMode="MultiLine" 
                                            Width="490px"></asp:TextBox>
                                            <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="tb_orders" 
                    ErrorMessage="Error, only order # separated with &quot;,&quot; without space" 
                    SetFocusOnError="True" 
                    ValidationExpression="((\d)*([a-z]|[A-Z]|[-])*(\d)*(,)*)+"></asp:RegularExpressionValidator>

                                    </td>
                                    
                                    <td valign="top">
                                        Submitted:</td>
                                    <td valign="top">
                                        <asp:DropDownList ID="cb_msubmitted" runat="server" Height="20px" Width="170px">
                                            <asp:ListItem>All</asp:ListItem>
                                            <asp:ListItem>No</asp:ListItem>
                                            <asp:ListItem>Yes</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right" valign="top">
                                        <asp:LinkButton ID="lnk_search" runat="server" CssClass="button2_ok" 
                                            ForeColor="White" onclick="lnk_search_Click"><span>Search</span></asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        &nbsp;</td>
                                    <td align="left" width="590px">
                                        <asp:Label ID="lbtest" runat="server" Text="Label"></asp:Label>
                                    </td>
                                    <td valign="top">
                                        &nbsp;</td>
                                    <td valign="top">
                                        &nbsp;</td>
                                    <td align="right" valign="top">
                                        &nbsp; </td>
                                </tr>
                            </table>
                        </asp:Panel>
        </td>
    </tr>
                <tr><td bgcolor="White"> &nbsp;</td></tr>
                <tr><td bgcolor="White"> 
                    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1" 
                        BorderColor="Silver" BorderStyle="Groove" BorderWidth="2px" Width="90%" 
                        > 
                         <asp:TabPanel runat="server" HeaderText="Driver" ID="TabDriver">
                            <ContentTemplate>
                            <asp:Panel ID="PDriver" runat="server">
                                <table align="center" cellpadding="0" cellspacing="0" class="style1" 
                                    width="600">
                                    <tr>
                                        <td>
                                              <asp:CheckBox ID="CHDRV" runat="server" Text="All" AutoPostBack="True" 
                                                oncheckedchanged="CHDRV_CheckedChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                      
                                        <asp:GridView ID="gv_multipledrv" runat="server" 
                                                Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'&gt;&lt;tr&gt;&lt;td&gt;Orders to Assign &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                                CssClass="letraNegra13" GridLines="None" 
                                                OnRowDataBound="gv_multipledrv_RowDataBound" ShowFooter="True" 
                                                Width="100%" EmptyDataText="No orders">
                                                <AlternatingRowStyle BackColor="#E7F1FE" BorderStyle="None" />
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="CHBX2" runat="server"  AutoPostBack="true"  oncheckedchanged="ch_select_CheckedChanged" />
                                                            <asp:Label ID="lb_order1" runat="server" Text='<%# Eval("Order id") %>' 
                                                                Visible="false" />
                                                            <asp:HyperLink ID="HyperLink2" runat="server" 
                                                                NavigateUrl='<%#"~/admin/ODetails.aspx?id=" + Eval("Order id") %>'><%# Eval("Order #")%></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EditRowStyle BorderStyle="None" BorderWidth="0px" Font-Underline="True" />
                                                <HeaderStyle CssClass="letraNegra14" />
                                            </asp:GridView>
                                            
                                        </td>
                                        <td class="style3" valign="top">
                                            <table align="center" width="100%">
                                                <tr valign="top">
                                                    <td>
                                                        <table width="100%">
                                                            <tr>
                                                                <td align="left" class="style5">
                                                                    <strong>Selected</strong></td>
                                                                <td>
                                                                    <asp:Label ID="lbcont1drv" runat="server" ForeColor="Gray" Text="0"></asp:Label>
                                                                    <asp:Label ID="Label3" runat="server" ForeColor="Blue" Text="&amp;nbsp;/ "></asp:Label>
                                                                    <asp:Label ID="lbcont2drv" runat="server" ForeColor="#333333" Text="0"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" class="style5">
                                                                    <strong>Driver</strong></td>
                                                                <td>
                                                                    <asp:DropDownList ID="cb_driver" runat="server" Width="150px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td>
                                                                    <asp:LinkButton ID="lnk_Assigndrv" runat="server" CssClass="button2_ok" 
                                                                        Enabled="False" ForeColor="White" OnClick="lnk_Assigndrv_Click"><span>Assign</span></asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" class="style5">
                                                                    &nbsp;</td>
                                                                <td>
                                                                    <asp:Label ID="lb_mensajedrv" runat="server" CssClass="letraAzul" Text="Label" 
                                                                        Visible="False"></asp:Label>
                                                                    <asp:Label ID="lb_errordrv" runat="server" CssClass="letraRojaValidacion" 
                                                                        Text="Label" Visible="False"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style2">
                                            &nbsp;</td>
                                        <td class="style3">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                </asp:Panel>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel runat="server" HeaderText="Processor" ID="TabProcessor">
                            <ContentTemplate>
                            
                            <asp:Panel ID="PProc" runat="server">
                                <table align="center" cellpadding="0" cellspacing="0" class="style1" 
                                    width="600px">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="CHPRO" runat="server" Text="All" 
                                                oncheckedchanged="CHPRO_CheckedChanged" AutoPostBack="True" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                          
                                            <asp:GridView ID="gv_multiple" runat="server" 
                                                Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'&gt;&lt;tr&gt;&lt;td&gt;Orders to Assign &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                                GridLines="None" onrowdatabound="gv_multiple_RowDataBound" 
                                                ShowFooter="True" CssClass="letraNegra13" Width="600px" 
                                                EmptyDataText="No orders">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="CHBX1" runat="server" AutoPostBack="true"  oncheckedchanged="ch_select_CheckedChanged"/>
                                                            <asp:Label ID="lb_order" runat="server" Text='<%# Eval("Order id") %>' 
                                                                Visible="false" />
                                                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                                                NavigateUrl='<%#"~/admin/ODetails.aspx?id=" + Eval("Order id") %>'><%# Eval("Order #")%></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <HeaderStyle CssClass="letraNegra14" />
                                                <EditRowStyle BorderStyle="None" BorderWidth="0px" Font-Underline="True" />
                                                <AlternatingRowStyle BackColor="#E7F1FE" BorderStyle="None" />
                                            </asp:GridView>
                                            
                                        </td>
                                        <td class="style3" valign="top">
                                            <table align="center" width="100%">
                                                <tr valign="top">
                                                    <td valign="top">
                                                        <table width="100%">
                                                         <tr>
                                                                <td align="left" class="style5">
                                                                    <strong>Selected</strong></td>
                                                                <td>
                                                                    <asp:Label ID="lbcont1pro" runat="server" ForeColor="Gray" Text="0"></asp:Label>
                                                                    <asp:Label ID="Label7" runat="server" ForeColor="Blue" Text=" / "></asp:Label>
                                                                    <asp:Label ID="lbcont2pro" runat="server" ForeColor="#333333" Text="0"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    <strong>Processor</strong></td>
                                                                <td>
                                                                    <asp:DropDownList ID="cb_processor" runat="server" Width="150px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td>
                                                                    <asp:LinkButton ID="lnk_Assign" runat="server" CssClass="button2_ok" 
                                                                        Enabled="False" ForeColor="White" OnClick="lnk_Assign_Click"><span>Assign</span></asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    &nbsp;</td>
                                                                <td>
                                                                    <asp:Label ID="lb_mensaje" runat="server" CssClass="letraAzul" Text="Label" 
                                                                        Visible="False"></asp:Label>
                                                                    <asp:Label ID="lb_error" runat="server" CssClass="letraRojaValidacion" 
                                                                        Text="Label" Visible="False"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style2">
                                            &nbsp;</td>
                                        <td class="style3">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                </asp:Panel>
                            </ContentTemplate>
                        </asp:TabPanel>
                  
                        <asp:TabPanel ID="TabQuality" runat="server" HeaderText="Quality Agent">
                            <ContentTemplate>
                            <asp:Panel ID="PQuality" runat="server">
                                <table align="center" cellpadding="0" cellspacing="0" class="style1" 
                                    width="100%">
                                    <tr>
                                    <td>
                                           <asp:CheckBox  ID="CHQC" runat="server" Text="All" AutoPostBack="True" 
                                                oncheckedchanged="CHQC_CheckedChanged"/>
                                    </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                     
                                            <asp:GridView ID="gv_multipleqc" runat="server" 
                                                Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'&gt;&lt;tr&gt;&lt;td&gt;Orders to Assign &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                                CssClass="letraNegra13" GridLines="None" 
                                                OnRowDataBound="gv_multipleqc_RowDataBound" ShowFooter="True" 
                                                Width="600px" EmptyDataText="No orders">
                                                
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="CHBX3" runat="server" AutoPostBack="true"  oncheckedchanged="ch_select_CheckedChanged" />
                                                            <asp:Label ID="lb_order3" runat="server" Text='<%# Eval("Order id") %>' 
                                                                Visible="false" />
                                                            <asp:HyperLink ID="HyperLink3" runat="server" 
                                                                NavigateUrl='<%#"~/admin/ODetails.aspx?id=" + Eval("Order id") %>'><%# Eval("Order #")%></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EditRowStyle BorderStyle="None" BorderWidth="0px" Font-Underline="True" />
                                                <HeaderStyle CssClass="letraNegra14" />
                                                <AlternatingRowStyle BackColor="#E7F1FE" BorderStyle="None" />
                                            </asp:GridView>
                                        </td>
                                        <td class="style3" valign="top">
                                            <table align="center" width="100%">
                                                <tr>
                                                    <td>
                                                        <table width="100%">
                                                         <tr>
                                                                <td align="left" class="style5">
                                                                    <strong>Selected</strong></td>
                                                                <td>
                                                                    <asp:Label ID="lbcont1qc" runat="server" ForeColor="Gray" Text="0"></asp:Label>
                                                                    <asp:Label ID="Label6" runat="server" ForeColor="Blue" Text=" / "></asp:Label>
                                                                    <asp:Label ID="lbcont2qc" runat="server" ForeColor="#333333" Text="0"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    <strong>Quality Agent</strong></td>
                                                                <td>
                                                                    <asp:DropDownList ID="cb_qc" runat="server" Width="150px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td>
                                                                    
                                                                                <asp:LinkButton ID="lnk_Assignqc" runat="server" CssClass="button2_ok" 
                                                                                    Enabled="False" ForeColor="White" OnClick="lnk_Assignqc_Click"><span>Assign</span></asp:LinkButton>
                                                                               
                                                                   
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    &nbsp;</td>
                                                                <td>
                                                                    <asp:Label ID="lb_mensajeqc" runat="server" CssClass="letraAzul" Text="Label" 
                                                                        Visible="False"></asp:Label>
                                                                    <asp:Label ID="lb_errorqc" runat="server" CssClass="letraRojaValidacion" 
                                                                        Text="Label" Visible="False"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                            &nbsp;</td>
                                        <td class="style3">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel ID="TabDueDate" runat="server" HeaderText="Due Date">
                            <ContentTemplate>
                            <asp:Panel ID="Panel1" runat="server">
                                <table align="center" cellpadding="0" cellspacing="0" class="style1" 
                                    width="100%">
                                    <tr>
                                    <td>
                                         <asp:CheckBox ID="CHDUE" runat="server" Text="All" AutoPostBack="True" 
                                                oncheckedchanged="CHDUE_CheckedChanged"  />
                                    </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                       
                                            <asp:GridView ID="gv_duedate" runat="server" 
                                                Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'&gt;&lt;tr&gt;&lt;td&gt;Orders to Change DueDate &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                                CssClass="letraNegra13" GridLines="None" 
                                                OnRowDataBound="gv_duedate_RowDataBound" ShowFooter="True" 
                                                Width="600px" EmptyDataText="No orders">
                                                
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="CHBX4" runat="server" AutoPostBack="true"  oncheckedchanged="ch_select_CheckedChanged"/>
                                                            <asp:Label ID="lb_order4" runat="server" Text='<%# Eval("Order id") %>' 
                                                                Visible="false" />
                                                            <asp:HyperLink ID="HyperLink3" runat="server" 
                                                                NavigateUrl='<%#"~/admin/ODetails.aspx?id=" + Eval("Order id") %>'><%# Eval("Order #")%></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EditRowStyle BorderStyle="None" BorderWidth="0px" Font-Underline="True" />
                                                <HeaderStyle CssClass="letraNegra14" />
                                                <AlternatingRowStyle BackColor="#E7F1FE" BorderStyle="None" />
                                            </asp:GridView>
                                        </td>
                                        <td class="style3" valign="top">
                                            <table align="center" width="100%">
                                                <tr>
                                                    <td>
                                                        <table width="100%">
                                                         <tr>
                                                                <td align="left" class="style5">
                                                                    <strong>Selected</strong></td>
                                                                <td>
                                                                    <asp:Label ID="lbcont1due" runat="server" ForeColor="Gray" Text="0"></asp:Label>
                                                                    <asp:Label ID="Label5" runat="server" ForeColor="Blue" Text=" / "></asp:Label>
                                                                    <asp:Label ID="lbcont2due" runat="server" ForeColor="#333333" Text="0"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" colspan="2">
                                                                    <strong>New Due Date</strong></td>
                                                                <td>
                                                                    
                                                                                <asp:LinkButton ID="ln_changedue" runat="server" CssClass="button2_ok" 
                                                                                    ForeColor="White" OnClick="ln_changedue_Click"><span>Assign</span></asp:LinkButton>
                                                                               
                                                                   
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    &nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="tb_newdue" runat="server" Width="150px"></asp:TextBox>
                                                                    <asp:CalendarExtender ID="tb_newdue_CalendarExtender" runat="server" 
                                                                        Enabled="True" Format="MM/dd/yyyy" TargetControlID="tb_newdue">
                                                                    </asp:CalendarExtender>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    &nbsp;</td>
                                                                <td>
                                                                    <asp:Label ID="Label1" runat="server" CssClass="letraAzul" Text="Label" 
                                                                        Visible="False"></asp:Label>
                                                                    <asp:Label ID="Label2" runat="server" CssClass="letraRojaValidacion" 
                                                                        Text="Label" Visible="False"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style4">
                                            &nbsp;</td>
                                        <td class="style3">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            
                            </ContentTemplate>
                        
                        </asp:TabPanel>
                    </asp:TabContainer>
                    </td></tr>
                    <tr>
                    <td bgcolor="White" align="center">
                        <asp:TabContainer ID="TabContainer2" runat="server" Width="90%"   
                            BorderColor="Silver" BorderStyle="Groove" BorderWidth="2px"  ActiveTabIndex="0" 
                            style="text-align: left" >
                           
                        </asp:TabContainer>
                        </td>
                </tr>
                    <tr>
                    <td bgcolor="White" align="center">
                        &nbsp;</td>
                </tr>
                    <tr>
                    <td bgcolor="White">
                        &nbsp;</td>
                </tr>
</table>
</asp:Content>


<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 700px;
        }
        .style3
        {
            width: 452px;
        }
        .style4
        {
            width: 600px;
        }
        .style5
        {
            width: 47px;
        }
    </style>
    </asp:Content>



